<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php if($meta_title != ''): echo ($meta_title); ?>-<?php endif; ?>WCup后台管理</title>
<link rel="stylesheet" href="/public/Admin/dist/css/zui.css">
<link rel="stylesheet" href="/public/Admin/dist/css/zui-theme.css">
<link rel="stylesheet" href="/public/Admin/common/css/common.css">
<script type="text/javascript" src="/public/Admin/dist/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="/public/Admin/dist/lib/form/jquery.form.js"></script>
<script type="text/javascript" src="/public/Admin/dist/js/zui.js"></script>
<script type="text/javascript" src="/public/Admin/dist/lib/layer/layer.js"></script>
<script type="text/javascript" src="/public/Admin/common/js/common.js"></script>


</head>
<body>
<div class="header">
    <nav class="navbar navbar-inverse" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                    <span class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <div class="navbar-brand" href="#">
                    <button type="button" class="slider-toggle" title="侧边栏开关">
                        <span class="sr-only">切换导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a href="#">WCup后台管理</a>
                </div>
            </div>
            <div class="collapse navbar-collapse navbar-collapse-example">
                <ul class="nav navbar-nav">
                    <li <?php if($mark == 'index'): ?>class="active"<?php endif; ?>><a href="<?php echo U('index/index');?>"><i class="icon icon-home"></i> 首页</a></li>
                    <li <?php if($mark == 'system'): ?>class="active"<?php endif; ?>><a href="<?php echo U('system/index');?>"><i class="icon icon-cog"></i> 系统</a></li>
                    <li <?php if($mark == 'user'): ?>class="active"<?php endif; ?>><a href="<?php echo U('user/index');?>"><i class="icon icon-user"></i> 用户</a></li>
                    <li <?php if($mark == 'content'): ?>class="active"<?php endif; ?>><a href="<?php echo U('article/index');?>"><i class="icon icon-file-text"></i> 内容</a></li>
                    <li <?php if($mark == 'extend'): ?>class="active"<?php endif; ?>><a href="<?php echo U('smsport/index');?>"><i class="icon icon-tags"></i> 扩展</a></li>
                    <li <?php if($mark == 'count'): ?>class="active"<?php endif; ?>><a href="<?php echo U('count/index');?>"><i class="icon icon-dashboard"></i> 统计</a></li>
                    <li <?php if($mark == 'module'): ?>class="dropdown active"<?php else: ?>class="dropdown"<?php endif; ?>>
                        <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-cube-alt"></i> 模块 <b class="caret"></b></a>
                        <ul class="dropdown-menu" role="menu">
                            <li <?php if($umark == 'company'): ?>class="active"<?php endif; ?>><a href="<?php echo U('company/index');?>">厂商</a></li>
                            <li <?php if($umark == 'team'): ?>class="active"<?php endif; ?>><a href="<?php echo U('team/index');?>">团队</a></li>
                            <li class="divider"></li>
                            <li <?php if($umark == 'project'): ?>class="active"<?php endif; ?>><a href="<?php echo U('project/index');?>">项目</a></li>
                            <li <?php if($umark == 'bug'): ?>class="active"<?php endif; ?>><a href="<?php echo U('bug/index');?>">漏洞</a></li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown navicon">
                        <a href="<?php echo U('home/index/index');?>" title="打开前台" target="_blank"><i class="icon icon-home"></i></a>
                    </li>
                    <li class="dropdown navicon">
                        <a class="btn-removeRuntime" href="javascript:;" data-href="<?php echo U('index/removeRuntime');?>" title="清空缓存"><i class="icon icon-trash"></i></a>
                    </li>
                    <li class="dropdown navicon bell">
                        <a href="javascript:;" title="消息通知" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-bell-alt"></i><span class="bubble">99+</span></a>
                        <ul class="dropdown-menu">
                            <li>
                                <div class="nano nscroller">
                                    <div class="content">
                                        <ul>
                                            <li><a href="#"><i class="icon icon-cloud-upload text-info"></i> 您有 1 条数据尚未备份 <span class="date">2 分钟前</span></a></li>
                                            <li><a href="#"><i class="icon icon-bug text-success"></i> 新增了 6 个漏洞待审核 <span class="date">15 分钟前</span></a></li>
                                            <li><a href="#"><i class="icon icon-user text-warning"></i> 您有 20 条用户认证未审核 <span class="date">30 分钟前</span></a></li>
                                            <li><a href="#"><i class="icon icon-yen text-danger"></i> 有 1 条提现记录尚未处理 <span class="date">1 小时前</span></a></li>
                                        </ul>
                                    </div>
                                </div>
                                <ul class="foot">
                                    <li><a href="#">查看全部消息</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown user">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><img class="avatar" src="/public/Admin/img/avatar2.jpg" /> <span><?php echo (session('account')); ?></span> <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">打开前台</a></li>
                            <li><a href="#">个人设置</a></li>
                            <li><a href="#">修改密码</a></li>
                            <li class="divider"></li>
                            <li><a href="#">注销</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</div>


    <?php if($mark == 'index'): ?><div class="slider">
    <ul class="slider-menu">
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-home"></i> 系统首页</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'info'): ?>class="active"<?php endif; ?>><a href="<?php echo U('index/info');?>">系统信息</a></li>
            </ul>
        </li>
    </ul>
</div>

    <?php elseif($mark == 'system'): ?>
      <div class="slider">
    <ul class="slider-menu">
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-cogs"></i> 系统设置</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'basic'): ?>class="active"<?php endif; ?>><a href="<?php echo U('system/basic');?>">基本设置</a></li>
                <li <?php if($umark == 'system'): ?>class="active"<?php endif; ?>><a href="<?php echo U('system/system');?>">后台设置</a></li>
            </ul>
        </li>
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-cog"></i> 系统功能</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'nav'): ?>class="active"<?php endif; ?>><a href="<?php echo U('nav/index');?>">导航管理</a></li>
                <li <?php if($umark == 'upload'): ?>class="active"<?php endif; ?>><a href="<?php echo U('upload/index');?>">附件管理</a></li>
                <li <?php if($umark == 'link'): ?>class="active"<?php endif; ?>><a href="<?php echo U('link/index');?>">友情链接</a></li>
            </ul>
        </li>
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-server"></i> 系统权限</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'admin'): ?>class="active"<?php endif; ?>><a href="<?php echo U('admin/index');?>">管理员列表</a></li>
                <li><a href="#">角色列表</a></li>
            </ul>
        </li>
    </ul>
</div>

    <?php elseif($mark == 'user'): ?>
      <div class="slider">
    <ul class="slider-menu">
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-user"></i> 用户管理</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'config'): ?>class="active"<?php endif; ?>><a href="<?php echo U('user/config');?>">用户配置</a></li>
                <li <?php if($umark == 'list'): ?>class="active"<?php endif; ?>><a href="<?php echo U('user/index');?>">用户列表</a></li>
                <li <?php if($umark == 'title'): ?>class="active"<?php endif; ?>><a href="<?php echo U('title/index');?>">称号列表</a></li>
                <li <?php if($umark == 'grade'): ?>class="active"<?php endif; ?>><a href="<?php echo U('grade/index');?>">等级列表</a></li>
            </ul>
        </li>
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-list-alt"></i> 用户记录</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'log_score'): ?>class="active"<?php endif; ?>><a href="<?php echo U('log/score');?>">积分记录</a></li>
                <li <?php if($umark == 'log_login'): ?>class="active"<?php endif; ?>><a href="<?php echo U('log/login');?>">登录日志</a></li>
            </ul>
        </li>
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-yen"></i> 钱包操作</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'bill'): ?>class="active"<?php endif; ?>><a href="<?php echo U('pay/bill');?>">账单列表</a></li>
                <li <?php if($umark == 'withdraw'): ?>class="active"<?php endif; ?>><a href="<?php echo U('log/withdraw');?>">提现记录</a></li>
            </ul>
        </li>
    </ul>
</div>

    <?php elseif($mark == 'content'): ?>
      <div class="slider">
    <ul class="slider-menu">
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-file-text"></i> 资讯管理</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'article_config'): ?>class="active"<?php endif; ?>><a href="#">资讯设置</a></li>
                <li <?php if($umark == 'article_list'): ?>class="active"<?php endif; ?>><a href="<?php echo U('article/index');?>">资讯列表</a></li>
                <li <?php if($umark == 'article_submit'): ?>class="active"<?php endif; ?>><a href="<?php echo U('article/submit');?>">投稿列表</a></li>
                <li <?php if($umark == 'article_column'): ?>class="active"<?php endif; ?>><a href="<?php echo U('column/index');?>">栏目管理</a></li>
            </ul>
        </li>
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-comments"></i> 论坛管理</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'bbs_config'): ?>class="active"<?php endif; ?>><a href="#">论坛设置</a></li>
                <li <?php if($umark == 'bbs_list'): ?>class="active"<?php endif; ?>><a href="<?php echo U('topic/index');?>">主题列表</a></li>
                <li <?php if($umark == 'bbs_reply'): ?>class="active"<?php endif; ?>><a href="<?php echo U('reply/index');?>">回复列表</a></li>
                <li <?php if($umark == 'bbs_section'): ?>class="active"<?php endif; ?>><a href="<?php echo U('section/index');?>">版块列表</a></li>
            </ul>
        </li>
    </ul>
</div>

    <?php elseif($mark == 'extend'): ?>
      <div class="slider">
    <ul class="slider-menu">
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-tags"></i> 短信接口</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'smsconfig'): ?>class="active"<?php endif; ?>><a href="<?php echo U('smsport/config');?>">短信配置</a></li>
                <li <?php if($umark == 'smstemp'): ?>class="active"<?php endif; ?>><a href="<?php echo U('smsport/index');?>">短信模板</a></li>
            </ul>
        </li>
    </ul>
</div>

    <?php elseif($mark == 'count'): ?>
        
    <?php elseif($mark == 'module'): ?>
        <div class="slider">
    <ul class="slider-menu">
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-cube"></i> 模块管理</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'company'): ?>class="active"<?php endif; ?>><a href="<?php echo U('company/index');?>">厂商列表</a></li>
                <li <?php if($umark == 'team'): ?>class="active"<?php endif; ?>><a href="<?php echo U('team/index');?>">团队列表</a></li>
            </ul>
        </li>
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-tasks"></i> 项目管理</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'project_type'): ?>class="active"<?php endif; ?>><a href="<?php echo U('projecttype/index');?>">项目类型</a></li>
                <li <?php if($umark == 'project'): ?>class="active"<?php endif; ?>><a href="<?php echo U('project/index');?>">项目列表</a></li>
            </ul>
        </li>
        <li>
            <a href="javascript:;">
                <div class="pull-right"><i class="icon-caret-down"></i></div><i class="icon icon-bug"></i> 漏洞管理</a>
            <ul class="sub-menu">
                <li <?php if($umark == 'bug_type'): ?>class="active"<?php endif; ?>><a href="<?php echo U('bugtype/index');?>">漏洞类型</a></li>
                <li <?php if($umark == 'bug'): ?>class="active"<?php endif; ?>><a href="<?php echo U('bug/index');?>">漏洞列表</a></li>
            </ul>
        </li>
    </ul>
</div><?php endif; ?>
    <div class="main">
        <div class="crumb">
            <div class="page-actions pull-right">
                <div class="btn-group">
                    <button type="button" class="btn btn-sm btn-back" title="返回"><i class="icon icon-reply"></i></button>
                    <button type="button" class="btn btn-sm btn-refresh" title="刷新"><i class="icon icon-refresh"></i></button>
                    <button type="button" class="btn btn-sm btn-next" title="前进"><i class="icon icon-reply icon-flip-horizontal"></i></button>
                </div>
            </div>
            <ul class="breadcrumb">
                <li><i class="icon icon-home"></i></li>
                <?php if(is_array($bread_crumb)): $i = 0; $__LIST__ = $bread_crumb;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><?php echo ($vo); ?></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <div class="container-fluid">
            <div class="panel">
                <div class="panel-heading">
                    <div class="btn-actions">
                        <?php if(is_array($top_button_list)): $i = 0; $__LIST__ = $top_button_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><button data-url="<?php echo ($vo['href']); ?>" class="<?php echo ($vo['class']); ?>"><?php echo ($vo['title']); ?></button>&nbsp;<?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                </div>
                <div class="panel-body">
                  <div class="data-list">
                      <table class="table datatable table-bordered table-hover">
                          <thead>
                              <tr>
                                  <?php if(is_array($table_column_list)): $i = 0; $__LIST__ = $table_column_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><th data-sort="<?php echo ($vo["sort"]); ?>" data-type="<?php echo ($vo["type"]); ?>" data-width="<?php echo ($vo["width"]); ?>"><?php echo ($vo["title"]); ?></th><?php endforeach; endif; else: echo "" ;endif; ?>
                              </tr>
                          </thead>
                          <tbody>
                              <?php if(is_array($table_data_list)): $i = 0; $__LIST__ = $table_data_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><tr data-id="<?php echo ($data["id"]); ?>">
                                      <?php if(is_array($table_column_list)): $i = 0; $__LIST__ = $table_column_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$column): $mod = ($i % 2 );++$i; if($column['type'] == 'rightbtn'): ?><td>
                                                  <?php if(is_array($data['right_button'])): $i = 0; $__LIST__ = $data['right_button'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><button data-url="<?php echo ($vo['href']); ?>" class="<?php echo ($vo['class']); ?>"><?php echo ($vo['title']); ?></button>&nbsp;<?php endforeach; endif; else: echo "" ;endif; ?>
                                              </td>
                                          <?php else: ?>
                                              <td><?php echo ($data[$column['name']]); ?></td><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                              <?php if(empty($table_data_list)): ?><tr class="builder-data-empty">
                                      <?php $tdcolspan = count($table_column_list) ?>
                                      <td class="text-center empty-info" colspan="<?php echo ($tdcolspan); ?>" style="width:auto !important;">
                                          <i class="icon icon-database"></i> 暂时没有数据
                                      </td>
                                  </tr><?php endif; ?>
                          </tbody>
                      </table>
                      <?php if(!empty($table_data_page)): ?><div class="page"><?php echo ($table_data_page); ?></div><?php endif; ?>
                  </div>
                </div>
            </div>
        </div>
    </div>


    <link rel="stylesheet" href="/public/Admin/dist/lib/zoomify/zoomify.css">
    <script type="text/javascript" src="/public/Admin/dist/lib/zoomify/zoomify.js"></script>
    <link rel="stylesheet" href="/public/Admin/dist/lib/datatable/zui.datatable.css">
    <script type="text/javascript" src="/public/Admin/dist/lib/datatable/zui.datatable.js"></script>
    <script type="text/javascript" src="/public/Admin/common/js/table.js"></script>


</body>
</html>